<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      ul {
        width: 600px;
        height: 50px;
        border: 1px solid #000;
        margin: 50px auto;
        display: flex;
      }
      li {
        list-style: none;
        height: 50px;
        width: 130px;
        line-height: 50px;
        text-indent: 40px;
        border-right: 1px dashed #000;
        background-image: url("./images/360bg.png");
        background-repeat: no-repeat;
        transition: 0.5s;
      }
      li:first-child {
        background-position: 16px -50px;
      }
      li:first-child:hover {
        background-position-y: -88px;
        color: green;
      }
      li:nth-child(2) {
        background-position: 16px -127px;
      }
      li:nth-child(3) {
        background-position: 16px -208px;
      }
    </style>
  </head>
  <body>
    <ul>
      <li>我的主页</li>
      <li>新闻头条</li>
      <li>电视剧</li>
    </ul>
  </body>
</html>
